package br.com.dev.tcc.builder;

import android.content.Context;
import br.com.dev.tcc.bean.sinistro.BaseViewSinistroItem;
import br.com.dev.tcc.bean.sinistro.TipoSinistro;

public class BaseSinistroItemBuilder extends BaseViewItemBuilder {

	public BaseSinistroItemBuilder(Context ctx) {
		super(ctx);
	}

	public BaseViewSinistroItem build(int iconRes, int textRes, TipoSinistro tipo){
		
		BaseViewSinistroItem sinistroItem = new BaseViewSinistroItem();
		sinistroItem.setIcon(iconRes);
		sinistroItem.setText(ctx.getResources().getString(textRes));
		sinistroItem.setTipo(tipo);
		return sinistroItem;
	}
}
